package com.gugee.ins.common.dal.mapper.blogger;

import com.gugee.common.mapper.GugeeMapper;
import com.gugee.ins.common.model.mysql.blogger.InsRelBloggerFollower;
import org.apache.ibatis.annotations.Select;

public interface InsRelBloggerFollowerMapper extends GugeeMapper<InsRelBloggerFollower> {

    /**
     *
     * @param uid
     * @return
     */
    @Select("select count(*) from ins_rel_blogger_follower f left join ins_blogger b on f.f_uid = b.uid where f.uid = #{uid} and b.last_collect_time > 0 ")
    int countRealBlogger(long uid);
}